package com.ruoyi.management.basics.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.management.basics.service.ITCompanyService;
import com.ruoyi.management.basics.vo.GetCompanyListVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 【请填写功能名称】Controller
 * 
 * @author ruoyi
 * @date 2021-11-30
 */
@RestController
@RequestMapping("/company")
public class TCompanyController extends BaseExtController
{
    @Autowired
    private ITCompanyService tCompanyService;

    /**
     * 查询企业列表下拉
     */
    @ApiOperation(value = " 查询企业列表下拉", notes = "查询企业列表下拉")
    @GetMapping("/get_company_list")
    public TableDataInfo list() {
        List<GetCompanyListVo> list = tCompanyService.getCompanyList(getCompanyId());
        return getDataTable(list);
    }
}
